﻿using System;
using System.Web;
using TrafficArchives.Utilities;

namespace TrafficArchives
{
    public partial class Default : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                CheckLogin();
            }
        }

        public static void CheckLogin()
        {
            if (!LoginUser.Current.IsLogined)
            {
                HttpContext.Current.Response.Redirect("~/Error.aspx");
            }
        }
    }
}